home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
opus
/
v4
/
dopbt41
/
4
/
docs
/
file-lha->lzx.txt
< prev
Wrap
Text File
|
1996-06-13
|
4KB
|
95 lines
##
## $VER: convert LHA to LZX--file.txt (and vice versa) 1.0
##
Well, it seems there is a new archiver on the world called LZX. Now
would it not be nice to be able to convert your LHA archives to the new,
and improved :-), LZX format from within OPUS with a single mouse click ???
This is how to do it:
Start the config editor (logical step isn't it ??)
choose a button/menu of your likes, and edit in the next lines:
---------------------------------------
NAME: LHA->LZX-file
AmigaDOS rx dopus:modules/rexx/conv.lha->lzx.rexx {f}
FLAGS:
Do all files
No filename quote
Output window
Rescan source
---------------------------------------
Exit the configeditor, and (if not excisting already) MAKEDIR in the
dopus: directory, called modules (it SHOULD be there already...). Enter
the dopus:modules/ directory, and MAKEDIR rexx (your path should look
like DOPUS:MODULES/REXX/ !!)
IMPORTANT !!! The script will create in your sys: partition a directory
called repack. The files will be worked on there. After finishing the
ENTIRE directory called sys:repack will be deleted... So IF YOU HAVE A
DIR CALLED SYS:REPACK IN USE, YOU MUST CHANGE THAT NAME, OR EDIT THE
SCRIPTS !!!!!!
Please copy the files from the rexx/ dir in this archive
(conv.lha->lzx.rexx, and conv.lzx->lha.rexx) to dopus:modules/rexx dir.
You could copy the scripts to the assigned rexx: directory, but I have
noticed that dir tends to grow HUGE as you start using different
programms with an arexx port...
Now select any LHA archive, click on the just created button (menu ?), and
voila... Your lha archive will be extracted, and repacked with LZX.
NOTE1... The original (lha) archive will be deleted by the script (what's
the use of keeping the BIG lha file when you have a LZX archive :-)) ).
NOTE2... The scrips does a great cleanup job afterwards, so DO NOT USE
SYS:REPACK FOR ANYTHING ELSE !!!!! I AM NOT RESPONSIBLE FOR YOUR ERRORS !
-------
For compatibilty reasons I have also included a reverse script (convert
LZX to LHA). Usage is the same, just rename button conv.lha->lzx.rexx to
the more apropriate conv.lzx->lha.rexx...
Why you would want to use it remains a mistery, but, hey, it's your
computer isn't it ??!!
Let me know what you think, and if you use it (and why not...?).
·······························································
.#.####..............................................####..####
##.#..#........._______....______......_______.......#..#..#...
.#.####......../ /....| \.....\ .......####..####
.#....#......./______/.....|______|.....\ .........#.....#
.#.####....../ /......| |......\ .....####..####
............/....../.......|_____/........\_______.............
...............................................................
.............ABC, THE CUTEST LAMER IN THE BUSINESS.............
...............................................................
........................... .xXXx. ............................
........................... |o'`o| ............................
.............-----------.oOO-(__)-OOo.-----------..............
...______ ..: :...______....
. / \..: NIELS van \X/illigenburg :../ \...
..| O O |..: Millingenhof 123 :..| O O |...
..| /\ |..: NL-1106 KH AMSTERDAM :..| /\ |...
..| \__/ |..: Netherlands :..| \__/ |...
...\____/...: Europe :...\____/....
............: +31-(0)20-6979932 :.............
............: FIDO -> 2:280/464.17 :.............
............: -> niels@aobh.xs4all.nl:.............
............`------------------------------------'.............
...............................................................